package com.maxie.command.order.impl;

import com.maxie.command.cook.impl.BaoziCooker;
import com.maxie.command.cook.impl.YoutiaoCooker;
import com.maxie.command.order.Order;
import com.maxie.command.waiter.WaiterReceiver;

/**
 * 油条：具体的命令
 */
public class YoutiaoOrder implements Order {
    private YoutiaoCooker youtiaoCooker;

    public YoutiaoOrder(YoutiaoCooker youtiaoCooker) {
        this.youtiaoCooker = youtiaoCooker;
    }
    @Override
    public void execute() {
        youtiaoCooker.action();
    }
}
